export const baseUrl = 'https://jsgjzx.cn/prod-api'
export function request({
  url,
  method,
  data = {}
}) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: baseUrl + url,
      method: method,
      data: data,
      success: (res) => {
        resolve(res);
      },
      fail: (err) => {
        reject(err);
      },
    });
  });
}